<?php
/**
 * Created by PhpStorm.
 * User: dust2
 * Date: 14-12-21
 * Time: 上午12:14
 */

class LinkageTableSeeder extends Seeder
{
    public function run()
    {
        DB::table('linkages')->delete();

        /**
         * 北京
         */
        Linkage::create(['id' => 2, 'sup_id' => 1, 'name' => '北京', 'type' => 1]);


        Linkage::create(['id' => 52, 'sup_id' => 2, 'name' => '北京', 'type' => 2]);


        Linkage::create(['id' => 503, 'sup_id' => 52, 'name' => '朝阳区', 'type' => 3]);

        Linkage::create(['id' => 513, 'sup_id' => 52, 'name' => '怀柔区', 'type' => 3]);


        /**
         * 香港
         */
        Linkage::create(['id' => 33, 'sup_id' => 1, 'name' => '香港', 'type' => 1]);


        Linkage::create(['id' => 395, 'sup_id' => 33, 'name' => '香港', 'type' => 2]);


        Linkage::create(['id' => 3377, 'sup_id' => 395, 'name' => '油尖旺区', 'type' => 3]);

        Linkage::create(['id' => 3378, 'sup_id' => 395, 'name' => '北区', 'type' => 3]);


        /**
         * 台湾
         */
        Linkage::create(['id' => 35, 'sup_id' => 1, 'name' => '台湾', 'type' => 1]);


        Linkage::create(['id' => 397, 'sup_id' => 35, 'name' => '台湾', 'type' => 2]);


        Linkage::create(['id' => 3384, 'sup_id' => 397, 'name' => '台北', 'type' => 3]);

        Linkage::create(['id' => 3386, 'sup_id' => 397, 'name' => '基隆', 'type' => 3]);

        /**
         * 广东
         */
        Linkage::create(['id' => 6, 'sup_id' => 1, 'name' => '广东', 'type' => 1]);


        Linkage::create(['id' => 76, 'sup_id' => 6, 'name' => '广州', 'type' => 2]);

        Linkage::create(['id' => 77, 'sup_id' => 6, 'name' => '深圳', 'type' => 2]);


        Linkage::create(['id' => 693, 'sup_id' => 76, 'name' => '天河区', 'type' => 3]);

        Linkage::create(['id' => 705, 'sup_id' => 77, 'name' => '福田区', 'type' => 3]);

    }
}
